/* //console.log(this);

function foo(){
    let person = {
        name: '彭于晏',
        age: 42
    }
    console.log(this);
    
}
function bar() {
    let person ={
        name: '彭于晏',
        age:42
    }
    foo()
}

bar() */

function foo(){
    let a = 1
    function bar(){
        console.log(this);
    }
    bar()
}
foo()